// File generated from our OpenAPI spec by Stainless.

package com.metest.api.services.blocking.rest.actuator

import com.metest.api.TestServerExtension
import com.metest.api.client.okhttp.MetestOkHttpClient
import com.metest.api.models.rest.actuator.env.EnvListParams
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith

@ExtendWith(TestServerExtension::class)
internal class EnvServiceTest {

    @Disabled("Prism tests are disabled")
    @Test
    fun list() {
        val client =
            MetestOkHttpClient.builder()
                .baseUrl(TestServerExtension.BASE_URL)
                .apiKey("My API Key")
                .build()
        val envService = client.rest().actuator().env()

        val envs = envService.list(EnvListParams.builder().pattern("pattern").build())

        envs.validate()
    }

    @Disabled("Prism tests are disabled")
    @Test
    fun retrieveByMatch() {
        val client =
            MetestOkHttpClient.builder()
                .baseUrl(TestServerExtension.BASE_URL)
                .apiKey("My API Key")
                .build()
        val envService = client.rest().actuator().env()

        val response = envService.retrieveByMatch("toMatch")

        response.validate()
    }
}
